package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.LuntaiMessageMapper;
import com.ruoyi.system.domain.LuntaiMessage;
import com.ruoyi.system.service.ILuntaiMessageService;

/**
 * 轮胎用户消息中心Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
@Service
public class LuntaiMessageServiceImpl implements ILuntaiMessageService 
{
    @Autowired
    private LuntaiMessageMapper luntaiMessageMapper;

    /**
     * 查询轮胎用户消息中心
     * 
     * @param id 轮胎用户消息中心主键
     * @return 轮胎用户消息中心
     */
    @Override
    public LuntaiMessage selectLuntaiMessageById(Integer id)
    {
        return luntaiMessageMapper.selectLuntaiMessageById(id);
    }

    /**
     * 查询轮胎用户消息中心列表
     * 
     * @param luntaiMessage 轮胎用户消息中心
     * @return 轮胎用户消息中心
     */
    @Override
    public List<LuntaiMessage> selectLuntaiMessageList(LuntaiMessage luntaiMessage)
    {
        return luntaiMessageMapper.selectLuntaiMessageList(luntaiMessage);
    }

    /**
     * 新增轮胎用户消息中心
     * 
     * @param luntaiMessage 轮胎用户消息中心
     * @return 结果
     */
    @Override
    public int insertLuntaiMessage(LuntaiMessage luntaiMessage)
    {
        luntaiMessage.setCreateTime(DateUtils.getNowDate());
        return luntaiMessageMapper.insertLuntaiMessage(luntaiMessage);
    }

    /**
     * 修改轮胎用户消息中心
     * 
     * @param luntaiMessage 轮胎用户消息中心
     * @return 结果
     */
    @Override
    public int updateLuntaiMessage(LuntaiMessage luntaiMessage)
    {
        return luntaiMessageMapper.updateLuntaiMessage(luntaiMessage);
    }

    /**
     * 批量删除轮胎用户消息中心
     * 
     * @param ids 需要删除的轮胎用户消息中心主键
     * @return 结果
     */
    @Override
    public int deleteLuntaiMessageByIds(Integer[] ids)
    {
        return luntaiMessageMapper.deleteLuntaiMessageByIds(ids);
    }

    /**
     * 删除轮胎用户消息中心信息
     * 
     * @param id 轮胎用户消息中心主键
     * @return 结果
     */
    @Override
    public int deleteLuntaiMessageById(Integer id)
    {
        return luntaiMessageMapper.deleteLuntaiMessageById(id);
    }
}
